package top.gongtao.tencent.cos.tencentcosweb.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by pc on 2017/11/18.
 */

@Component
@ConfigurationProperties(prefix="TencentCos")
public class YmlConfig {

    private String appid;
    private String secretid;
    private String secretkey;
    private String bucketname;

    public String getAppid() {
        return appid;
    }

    public YmlConfig(){System.out.print(toString());}

    @Override
    public String toString() {
        return "YmlConfig{" +
                "appid='" + appid + '\'' +
                ", secretid='" + secretid + '\'' +
                ", secretkey='" + secretkey + '\'' +
                ", bucketname='" + bucketname + '\'' +
                '}';
    }


    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecretid() {
        return secretid;
    }

    public void setSecretid(String secretid) {
        this.secretid = secretid;
    }

    public String getSecretkey() {
        return secretkey;
    }

    public void setSecretkey(String secretkey) {
        this.secretkey = secretkey;
    }

    public String getBucketname() {
        return bucketname;
    }

    public void setBucketname(String bucketname) {
        this.bucketname = bucketname;
    }
}
